import { createContext, useContext } from "react";

export const GolbalContext = new createContext()


export const useReduxStore = () => {
    const { state, dispatch } = useContext(GolbalContext) as any;
    return {
        state, dispatch
    }
}